<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/template/template.xhtml">
	<ui:define name="head">
		<title>故障统计分析</title>
		<link rel="stylesheet"
			href="#{request.contextPath}/resources/plugins/datatables/jquery.dataTables.min.css" />
		<style>
		.dataTable th {
			white-space: nowrap !important;
		}
		.row {
		    margin-right: 0;
		    margin-left: 0;
		}
</style>
	</ui:define>
	<ui:define name="content">				
		  <div class="row">
			<div class="col-lg-12 col-xs-12 no-padding">
				<!-- BAR CHART -->
				<div id="boxid" class="box box-success">
					<div class="box-header with-border">
					    <h4 id="yearsid" style="text-align: center;font-size:16px"></h4>
						<div id="yearsline"
							style="height: 50px; margin: 0 auto"></div>
					</div>
					<div class="box-body">
						<div class="chart">

							<div id="yearBars"
								style="height: 300px; margin: 0 auto"></div>
						</div>
					</div>
					<div class="box-header with-border">
					   <h4 id="yearid" style="text-align: center;font-size:16px"></h4>
						<div id="monthsline"
							style="height: 50px; margin: 0 auto"></div>
					</div>
					<div class="box-body">
						<div class="chart">
							<div id="monthBars"
								style="height: 300px;margin: 0 auto"></div>
						</div>
					</div>
					<!-- /.box-body -->
				</div>
			</div>
		</div>				
		<h:inputHidden id="lineName"
			value="#{request.getParameter('selectName')}"></h:inputHidden>
	</ui:define>

	<ui:define name="contentend">
		<script src="#{request.contextPath}/resources/plugins/datatables/jquery.dataTables.min.js"></script>
		<script
			src="#{request.contextPath}/resources/plugins/datatables/dataTables.bootstrap.min.js"></script>
		<script src="#{request.contextPath}/resources/plugins/echarts/echarts.js"></script>
		<script src="#{request.contextPath}/resources/js/mycharts/pieChart.js"></script>
		<script src="#{request.contextPath}/resources/js/mycharts/categoryBarChart.js"></script>
		<script src="#{request.contextPath}/resources/js/array-util.js"></script>
		<script src="primaryfaultHis.js"></script>		
		<script>
          
		</script>
	</ui:define>
</ui:composition>